<?php
/**
 * 用户
 */
class UserModel extends BaseModel{
	protected $tableName = 'user';
	protected $_auto = array(
			array('create_time','time',1,'function'),
			array('update_time','time',2,'function'),
	);
	
	protected $_link=array(
			'UserInfo'=>array(
					'mapping_type' => HAS_ONE,
					'class_name' => 'UserInfo',
					'foreign_key' => 'user_id',
					'mapping_fields' => 'address,room_id',
					'as_fields' => 'address,room_id',
			)
	);
	
}